package com.csyaonie.kotlin.ui

import android.content.Intent
import androidx.appcompat.app.AppCompatActivity
import android.os.Bundle
import android.view.View
import com.csyaonie.kotlin.R
import kotlinx.android.synthetic.main.activity_ui.*

class UiActivity : AppCompatActivity(),View.OnClickListener {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_ui)
        listview_bt.setOnClickListener(this)
    }

    override fun onClick(v: View?) {
        when(v?.id){
            R.id.listview_bt->{
                val intent =Intent(this,TestListView::class.java)
                startActivity(intent)
            }
        }
    }
}